home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / misc / dnsfind.shar / README < prev   
Encoding:
Text File  |  1996-10-25  |  1.7 KB  |  41 lines

  1. Contained herein is a Perl library, "dnsfind.pl", and two utilities
  2. that use the library, "makehosts" and "find-mx".
  3.  
  4. The Perl routine "dnsfind" is like the Perl "find" routine (found in
  5. find.pl in your Perl "lib" directory), except it is for DNS zones
  6. instead of your file system.  "dnsfind" calls a user-supplied routine,
  7. "dnswanted" (just like "find" calls "wanted"), with values from all
  8. DNS resource records found supplied in global variables.  See
  9. dnsfind.pl for more info.
  10.  
  11. You will need two pieces of software to use dnsfind:
  12.  
  13.     - Perl.  Version 4 or higher should be good enough.
  14.     - dig.  Version 2.0 or higher should be good enough.
  15.  
  16. The two utilities would serve as good examples of how dnsfind can be
  17. used, but we actually do use them locally.  "makehosts" generates
  18. our /etc/hosts and "find-mx" generates our /etc/mail/sendmail.cw.
  19.  
  20. /etc/hosts is well understood, and should be generated from DNS if you
  21. have DNS.  There are a number of other utilities in the BIND "contrib"
  22. directory that will do basically the same thing as "makehosts".
  23.  
  24. /etc/mail/sendmail.cw is a file used by SendMail (if you have it
  25. configured that way) to match domains or host names that it considers
  26. equivalent to the local host.  This is turn makes SendMail route mail
  27. addressed to any such domain or host name to the "local" mailer, which
  28. delivers the mail to a local user.  Because we have a centralised mail
  29. hub which accepts mail for a large number of systems, we just use
  30. "find-mx" to locate all "highest preference" MX records which match
  31. our hub as the MX, and put them in /etc/mail/sendmail.cw.  There are
  32. other ways to get SendMail to do what you want, but this was the
  33. neatest way for us.
  34.  
  35. --
  36. Tim Cook
  37. Systems Engineer
  38. Computing & Communications Services
  39. Deakin University
  40. 2 Nov 1994
  41.